package com.dream.model;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.hibernate.annotations.Cascade;
import org.hibernate.annotations.CascadeType;

/**
 * 
 * 课排表
 * 
 * @author Administrator
 *
 */
@Entity
@Table(name = "sys_classplantmaster")
public class Sys_ClassPlantMaster extends AllId {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	/**
	 * 
	 */
	
	private SysUser sysUser;// 哪个老师
	private Sys_Class sys_Class;// 哪个年级树上面的
	private String start1;// 时间开始
	private String end;// 时间结束
	private String week;// 周几
	private String value; //
	private String sname;// 
	private Sys_LearnPlant sys_LearnPlant; //当前模板里面确认的要实话的计划，一周更新一次
	private Long  classTime; //上课时间，每周规划一次
	private String  classTimeShow; //上课时间，每次规划一次
	

	@ManyToOne(fetch = FetchType.LAZY)
	@Cascade(CascadeType.PERSIST)
	public Sys_LearnPlant getSys_LearnPlant() {
		return sys_LearnPlant;
	}

	public void setSys_LearnPlant(Sys_LearnPlant sys_LearnPlant) {
		this.sys_LearnPlant = sys_LearnPlant;
	}
	 
	@ManyToOne(fetch = FetchType.LAZY)
	@Cascade(CascadeType.PERSIST)
	public SysUser getSysUser() {
		return sysUser;
	}
 
	public void setSysUser(SysUser sysUser) {
		this.sysUser = sysUser;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@Cascade(CascadeType.PERSIST)
	public Sys_Class getSys_Class() {
		return sys_Class;
	}

	public void setSys_Class(Sys_Class sys_Class) {
		this.sys_Class = sys_Class;
	}

	public String getStart1() {
		return start1;
	}

	public void setStart1(String start1) {
		this.start1 = start1;
	}

	public String getEnd() {
		return end;
	}

	public void setEnd(String end) {
		this.end = end;
	}

	public String getWeek() {
		return week;
	}

	public void setWeek(String week) {
		this.week = week;
	}

	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}

	public String getSname() {
		return sname;
	}

	public void setSname(String sname) {
		this.sname = sname;
	}

	public Sys_ClassPlantMaster(String table_id, String start1, String end, String week, String value, String sname, String classId) {
		super(table_id);
		this.start1 = start1;
		this.end = end;
		this.week = week;
		this.value = value;
		this.sname = sname;
		super.setString1(classId);
	} 
	public Sys_ClassPlantMaster(String table_id, String start1, String end, String week, String value, String sname, Long classTime, String classTimeShow,String classId,String userId,String learnPlantId,String learnplantPname) {
		super(table_id); 
		this.start1 = start1;
		this.end = end;
		this.week = week;
		this.value = value;
		this.sname = sname;
		this.classTime = classTime;
		this.classTimeShow = classTimeShow;
	    super.setString1(classId);
	    super.setString2(userId);
	    super.setString3(learnPlantId);
	    super.setString4(learnplantPname);
	}
	public Sys_ClassPlantMaster(String table_id, String start1, String end, String week, String value, String sname, Long classTime, String classTimeShow,String classId,String userId,String learnPlantId) {
		super(table_id); 
		this.start1 = start1;
		this.end = end;
		this.week = week;
		this.value = value;
		this.sname = sname;
		this.classTime = classTime;
		this.classTimeShow = classTimeShow;
	    super.setString1(classId);
	    super.setString2(userId);
	    super.setString3(learnPlantId); 
	}

	public Sys_ClassPlantMaster() {

	}
 
	public Long getClassTime() {
		return classTime;
	}

	public void setClassTime(Long classTime) {
		this.classTime = classTime;
	}

	public String getClassTimeShow() {
		return classTimeShow;
	}

	public void setClassTimeShow(String classTimeShow) {
		this.classTimeShow = classTimeShow;
	}

	public Sys_ClassPlantMaster(String table_id, SysUser sysUser, Sys_Class sys_Class, String start1, String end, String week, String value, String sname, Sys_LearnPlant sys_LearnPlant, Long classTime, String classTimeShow) {
		super(table_id);
		this.sysUser = sysUser;
		this.sys_Class = sys_Class;
		this.start1 = start1;
		this.end = end;
		this.week = week;
		this.value = value;
		this.sname = sname;
		this.sys_LearnPlant = sys_LearnPlant;
		this.classTime = classTime;
		this.classTimeShow = classTimeShow;
	} 
}
